package com.mofang.powerdekorhelper.base;

import android.app.Application;

import com.uuzuche.lib_zxing.activity.ZXingLibrary;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by luofei on 2017/8/16 0016.
 */

public class BaseApplication extends Application {

    public static BaseApplication application;

    synchronized public static BaseApplication getApplication() {
        return application;
    }

    //public static RefWatcher refWatcher = null;

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;

        ZXingLibrary.initDisplayOpinion(application);

        //new HyphenateUtils().initEMClient(application);

        JPushInterface.setDebugMode(false);
        JPushInterface.init(this);

        //if (LeakCanary.isInAnalyzerProcess(this)) {
            // This process is dedicated to LeakCanary for heap analysis.
            // You should not init your app in this process.
            return;
        //}
        //refWatcher = LeakCanary.install(this);
    }

    /*public static RefWatcher getRefWatcher() {
        return refWatcher;
    }*/
}
